﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Telerik.WinControls;

namespace Sistema_de_Patrimonio.SDP_UI.Consultas
{
    public partial class Consultas_PorResolucion_Reporte_Numero : Telerik.WinControls.UI.RadForm
    {
        public Consultas_PorResolucion_Reporte_Numero()
        {
            InitializeComponent();
        }

        public String Orden;
        public UInt32 TipoBien;
        public String Resolucion;

        private void Consultas_PorResolucion_Reporte_Load(object sender, EventArgs e)
        {
            SDP_REP.Reporte_PorResolucion_Numero Rpt = new SDP_REP.Reporte_PorResolucion_Numero();
            reportViewer1.Report = Rpt;
            Rpt.ReportParameters["orden"].Value = Orden;
            Rpt.ReportParameters["numeroBaja"].Value = Resolucion;
            Rpt.ReportParameters["tipoBien"].Value = TipoBien;
            if (TipoBien == 1)
            {
                Rpt.txt_CantElementos.Visible = false;
                Rpt.txt_Elementos.Visible = false;
                Rpt.txt_SumaContable.Visible = false;
                Rpt.txt_Vcontable.Visible = false;
            }
            reportViewer1.RefreshReport();
        }
    }
}
